package com.znfeiche.common;

public class CommonReturnType {
	private String code;
	private Object data;
	public static CommonReturnType create(Object data){
		return CommonReturnType.create("success", data);
	}
	public static CommonReturnType create(String code,Object data){
		return new CommonReturnType(code, data);
	}
	public CommonReturnType(String code, Object data) {
		super();
		this.code = code;
		this.data = data;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	
}
